<?php
/**
* @author: Nguyen Thanh Tung
* @date: Monday, January 27, 2014
*/
/*if( !isset($AppUI) ||
	!isset($_SESSION['uniform']) ||
	(isset($_SESSION['uniform']) && ($_SESSION['uniform']&1<<2)==0)	
*/	 
	/*||(isset($AppUI->id) && !in_array($AppUI->type, array(ROLE_ROOT, ROLE_ADMINISTRATOR)))*/
/*) {
	redirect(HOST_BACKEND);
}
$this->load->model('uniform_model', 'uniform');
$intUniformId   = (int)$this->input->get('uniformid', 0);
$row            = $this->uniform->get($intUniformId);//test(CI_Function::getYears($row['y_from']));
$this->smarty->assign('homeshirt',$row['home_shirt']);
$this->smarty->assign('y_from',CI_Function::getYears($row['y_from']));
$this->smarty->assign('y_to',CI_Function::getYears($row['y_to']));
//$this->smarty->assign('active',(int)$row['active']);
$this->smarty->assign('row', $row);*/
$this->load->model('league_model','league');
$league = $this->league->getAll();
$this->smarty->assign('league',$league);
//===============================================================
$this->load->library('common');
$seasons= $this->common->getSeason();
$this->smarty->assign('seasons',$seasons);

$this->smarty->display('title/edit.tpl');